package com.czkt.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 erp_sku
 *
 * @author ruoyi
 * @date 2024-05-07
 */
public class ErpSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 主商品Id */
    @Excel(name = "主商品Id")
    private Long spuId;

    /** 条码 */
    @Excel(name = "条码")
    private String productCode;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private String productUnit;

    /** 商品属性 */
    @Excel(name = "商品属性")
    private String productAttr;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal productSalesPrice;

    /** 采购价 */
    @Excel(name = "采购价")
    private BigDecimal productBuyPrice;

    /** 最低销售价 */
    @Excel(name = "最低销售价")
    private BigDecimal productMinSalesPrice;

    /** 零售价 */
    @Excel(name = "零售价")
    private BigDecimal productPrice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSpuId(Long spuId)
    {
        this.spuId = spuId;
    }

    public Long getSpuId()
    {
        return spuId;
    }
    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public String getProductCode()
    {
        return productCode;
    }
    public void setProductUnit(String productUnit)
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit()
    {
        return productUnit;
    }
    public void setProductAttr(String productAttr)
    {
        this.productAttr = productAttr;
    }

    public String getProductAttr()
    {
        return productAttr;
    }
    public void setProductSalesPrice(BigDecimal productSalesPrice)
    {
        this.productSalesPrice = productSalesPrice;
    }

    public BigDecimal getProductSalesPrice()
    {
        return productSalesPrice;
    }
    public void setProductBuyPrice(BigDecimal productBuyPrice)
    {
        this.productBuyPrice = productBuyPrice;
    }

    public BigDecimal getProductBuyPrice()
    {
        return productBuyPrice;
    }
    public void setProductMinSalesPrice(BigDecimal productMinSalesPrice)
    {
        this.productMinSalesPrice = productMinSalesPrice;
    }

    public BigDecimal getProductMinSalesPrice()
    {
        return productMinSalesPrice;
    }
    public void setProductPrice(BigDecimal productPrice)
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice()
    {
        return productPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("spuId", getSpuId())
                .append("productCode", getProductCode())
                .append("productUnit", getProductUnit())
                .append("productAttr", getProductAttr())
                .append("productSalesPrice", getProductSalesPrice())
                .append("productBuyPrice", getProductBuyPrice())
                .append("productMinSalesPrice", getProductMinSalesPrice())
                .append("productPrice", getProductPrice())
                .toString();
    }
}
